﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JavaScript遍历对象中的所有属性</title>
    <script type="text/javascript">
        var Person = new Object();
        Person.name ="Jack";
        Person.age = 23;
        for(var parm in Person){
            alert("属性:'"+parm+"' 值:"+Person[parm]);
        }
    </script>
</head>
<body>

</body>
</html>